﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CustomerDetailsEdit.ascx.cs"
    Inherits="Pages_CustomerDetailsEdit" %>
    <link rel="stylesheet" type="text/css" href="../Styles/EditDetails.css" />
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="ProfileWrapper"
    SelectMethod="GetData" TypeName="ProfileDataSource" UpdateMethod="UpdateData">
</asp:ObjectDataSource>
<asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource1">
    <EditItemTemplate>
        <tr>
            <td>
                Адресная линия 1:
            </td>
            <td width="350px">
                <asp:TextBox Width="340px" ID="TextBox1" runat="server" Text='<%# Bind("Address1") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Адресная линия 2:
            </td>
            <td>
                <asp:TextBox Width="340px" ID="TextBox2" runat="server" Text='<%# Bind("Address2") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Город:
            </td>
            <td>
                <asp:TextBox Width="340px" ID="TextBox3" runat="server" Text='<%# Bind("City") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Регион:
            </td>
            <td>
                <asp:TextBox Width="340px" ID="TextBox4" runat="server" Text='<%# Bind("Region") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Zip / Postal Code:
            </td>
            <td>
                <asp:TextBox Width="340px" ID="TextBox5" runat="server" Text='<%# Bind("PostalCode") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Телефон день:
            </td>
            <td>
                <asp:TextBox Width="340px" ID="TextBox6" runat="server" Text='<%# Bind("DayPhone") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Телефон вечер:
            </td>
            <td>
                <asp:TextBox Width="340px" ID="TextBox7" runat="server" Text='<%# Bind("EvePhone") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Мобильный телефон:
            </td>
            <td>
                <asp:TextBox Width="340px" ID="TextBox8" runat="server" Text='<%# Bind("MobPhone") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Email:
            </td>
            <td>
                <asp:TextBox Width="340px" ID="EmailBox" runat="server" Text='<%# Bind("Email") %>' />
            </td>
        </tr>
        <tr>
            <td valign="top">
                Кредитная карта:
            </td>
            <td>
                <table cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td width="140px">
                            Cardholder name:
                        </td>
                        <td width="200px">
                            <asp:TextBox Width="200px" ID="CreditCardHolderLabel" runat="server" Text='<%# Bind("CreditCardHolder") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Card type:
                        </td>
                        <td>
                            <asp:TextBox Width="200px" ID="CreditCardTypeLabel" runat="server" Text='<%# Bind("CreditCardType") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Card number:
                        </td>
                        <td>
                            <asp:TextBox Width="200px" ID="CreditCardNumberLabel" runat="server" Text='<%# Bind("CreditCardNumber") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Issue date:
                        </td>
                        <td>
                            <asp:TextBox Width="200px" ID="CreditCardIssueDateLabel" runat="server" Text='<%# Bind("CreditCardIssueDate") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Expiry date:
                        </td>
                        <td>
                            <asp:TextBox Width="200px" ID="CreditCardExpiryDateLabel" runat="server" Text='<%# Bind("CreditCardExpiryDate") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Issue number:
                        </td>
                        <td>
                            <asp:TextBox Width="200px" ID="CreditCardIssueNumberLabel" runat="server" Text='<%# Bind("CreditCardIssueNumber") %>' />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
                    Text="Update" />&nbsp;<asp:Button ID="UpdateCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="Cancel" />
            </td>
        </tr>
    </EditItemTemplate>
    <InsertItemTemplate>
        Address1:
        <asp:TextBox ID="Address1TextBox" runat="server" Text='<%# Bind("Address1") %>' />
        <br />
        Address2:
        <asp:TextBox ID="Address2TextBox" runat="server" Text='<%# Bind("Address2") %>' />
        <br />
        City:
        <asp:TextBox ID="CityTextBox" runat="server" Text='<%# Bind("City") %>' />
        <br />
        Region:
        <asp:TextBox ID="RegionTextBox" runat="server" Text='<%# Bind("Region") %>' />
        <br />
        PostalCode:
        <asp:TextBox ID="PostalCodeTextBox" runat="server" Text='<%# Bind("PostalCode") %>' />
        <br />
        DayPhone:
        <asp:TextBox ID="DayPhoneTextBox" runat="server" Text='<%# Bind("DayPhone") %>' />
        <br />
        EvePhone:
        <asp:TextBox ID="EvePhoneTextBox" runat="server" Text='<%# Bind("EvePhone") %>' />
        <br />
        MobPhone:
        <asp:TextBox ID="MobPhoneTextBox" runat="server" Text='<%# Bind("MobPhone") %>' />
        <br />
        Email:
        <asp:TextBox ID="EmailTextBox" runat="server" Text='<%# Bind("Email") %>' />
        <br />
        CreditCard:
        <asp:TextBox ID="CreditCardTextBox" runat="server" Text='<%# Bind("CreditCard") %>' />
        <br />
        CreditCardHolder:
        <asp:TextBox ID="CreditCardHolderTextBox" runat="server" Text='<%# Bind("CreditCardHolder") %>' />
        <br />
        CreditCardNumber:
        <asp:TextBox ID="CreditCardNumberTextBox" runat="server" Text='<%# Bind("CreditCardNumber") %>' />
        <br />
        CrditCardIssueDate:
        <asp:TextBox ID="CrditCardIssueDateTextBox" runat="server" Text='<%# Bind("CrditCardIssueDate") %>' />
        <br />
        CreditCardIssueNumber:
        <asp:TextBox ID="CreditCardIssueNumberTextBox" runat="server" Text='<%# Bind("CreditCardIssueNumber") %>' />
        <br />
        CreditCardExpiryDate:
        <asp:TextBox ID="CreditCardExpiryDateTextBox" runat="server" Text='<%# Bind("CreditCardExpiryDate") %>' />
        <br />
        CreditCardType:
        <asp:TextBox ID="CreditCardTypeTextBox" runat="server" Text='<%# Bind("CreditCardType") %>' />
        <br />
        <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
            Text="Вставка" />
        &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False"
            CommandName="Cancel" Text="Отмена" />
    </InsertItemTemplate>
    <HeaderTemplate>
        <table border="0" cellpadding="4" cellspacing="0" class="UserDetailsTable">
            <tr>
                <td colspan="2" class="UserDetailsTableHead">
                    <asp:Label runat="server" ID="TitleLabel" />
                </td>
            </tr>
    </HeaderTemplate>
    <FooterTemplate>
        </table>
    </FooterTemplate>
    <ItemTemplate>
        <tr>
            <td>
                Адресная линия 1:
            </td>
            <td width="350px">
                <asp:Label ID="Address1Label" runat="server" Text='<%# Bind("Address1") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Адресная линия 2:
            </td>
            <td>
                <asp:Label ID="Address2Label" runat="server" Text='<%# Bind("Address2") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Город:
            </td>
            <td>
                <asp:Label ID="CityLabel" runat="server" Text='<%# Bind("City") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Регион:
            </td>
            <td>
                <asp:Label ID="RegionLabel" runat="server" Text='<%# Bind("Region") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Zip / Postal Code:
            </td>
            <td>
                <asp:Label ID="PostalCodeLabel" runat="server" Text='<%# Bind("PostalCode") %>'>
                </asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                Телефон днём:
            </td>
            <td>
                <asp:Label ID="DayPhoneLabel" runat="server" Text='<%# Bind("DayPhone") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Телефон вечером:
            </td>
            <td>
                <asp:Label ID="EvePhoneLabel" runat="server" Text='<%# Bind("EvePhone") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Мобильный телефон:
            </td>
            <td>
                <asp:Label ID="MobPhoneLabel" runat="server" Text='<%# Bind("MobPhone") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Email:
            </td>
            <td>
                <asp:Label ID="EmailLabel" runat="server" Text='<%# Bind("Email") %>' />
            </td>
        </tr>
        <tr>
            <td>
                Кредитная карта:
            </td>
            <td>
                <asp:Label ID="CreditCardLabel" runat="server" Text='<%# Bind("CreditCard") %>' />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit"
                    Text="Редактировать" />
            </td>
        </tr>
    </ItemTemplate>
</asp:FormView>
